package ddd.equipment;
import ddd.Player;
import ddd.Weapon;
import ddd.constant.PlayerEnum;
import ddd.constant.WeaponEnum;

/**
 * 龙骑士装备
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/5/31 17:48
 */
public class DragoonEquipmentPolicy implements EquipmentPolicy{

    @Override
    public boolean canApply(Player player, Weapon weapon) {
        return player.getPlayerClass() == PlayerEnum.Dragoon;
    }

    @Override
    public boolean canEquip(Player player, Weapon weapon) {
        return weapon.getWeaponType() == WeaponEnum.Sword
                || weapon.getWeaponType() == WeaponEnum.Dagger;
    }

}
